<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>   
    <class name="${appConfig.outputPackageName}.model.${entity.javaName}" table="${entity.tableName}">
        <id name="${entity.hibernatePrimaryKeyColumn.javaName}" column="${entity.hibernatePrimaryKeyColumn.columnName}">
            <generator class="native"/>
        </id>        
        <#list entity.attributes as attribute>
		<#if !attribute.primaryKey >
		<property name="${attribute.javaName}" column="${attribute.columnName}" not-null="<#if attribute.allowNull >false<#else>true</#if>" />
		</#if>
		</#list>
    </class>
</hibernate-mapping>